<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/head::common_head('首页')"></head>
<body>
	<div class="main-content">
		<form id="submitForm" class="form-horizontal">
			<input name="id" type="hidden" class="form-control" id="id" th:value="${entity.id}" />
			<input name="paramVersion" type="hidden" class="form-control" id="paramVersion" th:value="${entity.paramVersion}"/>
			<table class="table table-bordered table-hover no-margins">
				<tbody>
					<tr>
						<td class="gray-bg text-right" width="15%">参数名称<span
							style="color: red;">*</span>：
						</td>
						<td width="35%"><input class="form-control" id="paramName"
							name="paramName" required th:value="${entity.paramName}" th:disabled="${entity.modify}"/></td>
						<td class="gray-bg text-right" width="15%">参数编码<span
							style="color: red;">*</span>：
						</td>
						<td width="35%"><input class="form-control" id="paramCode"
							name="paramCode" required th:value="${entity.paramCode}" th:disabled="${entity.modify}"/></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">请求系统<span style="color: red;">*</span>：
						</td>
						<td><select class="form-control" id="httpSysName"
							name="httpSysName" required th:disabled="${entity.modify}">
								<option value=''>请选择请求系统</option>
								<option th:selected="${entity.httpSysName eq option.code}"
									th:each="option : ${httpSysNames}" th:value="${option.code}"
									th:text="${option.code}"></option>
						</select></td>
						<td class="gray-bg text-right">参数状态<span style="color: red;">*</span>：
						</td>
						<td th:text="${entity.paramStatus}"><small>系统生成</small></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">请求入参<span style="color: red;">*</span>：
						</td>
						<td colspan="3">
							<textarea id="httpParam" name="httpParam" class="form-control" th:text="${entity.httpParam}" rows="1"></textarea>
						</td>
					</tr>
					<tr>
						<td class="gray-bg text-right">请求地址<span style="color: red;">*</span>：
						</td>
						<td colspan="3">
							<textarea id="httpUrl" name="httpUrl" class="form-control" th:text="${entity.httpUrl}" rows="1"></textarea>
						</td>
					</tr>
				</tbody>
			</table>
			<br>
			<div class="row">
				<div class="col-sm-offset-5 col-sm-8 text-center">
					<button id="saveBtn" type="button" class="btn btn-sm btn-info">
						<i class="fa fa-info"></i>保 存
					</button>
					<button id="submitBtn" type="submit" class="btn btn-sm btn-primary">
						<i class="fa fa-check"></i>提 交
					</button>
				</div>
			</div>
		</form>
	</div>
	<div th:include="common/script::common_script"></div>
	<div th:include="common/validate::validate_script"></div>
	<script type="text/javascript" th:src="@{/static/js/module/template/param/edit.js}"></script>
</body>
</html>
